#ifndef NUMERICCONVERSION_H
#define NUMERICCONVERSION_H

#include <QByteArray>

class NumericConversion
{
public:
    //将数值转换为QByteArray
    static QByteArray IntToArray(unsigned int v);
    static QByteArray ShortToArray(unsigned short v);

    //将QByteArray转换为数值
    static unsigned int ArrayToInt(const QByteArray in);
};

#endif // NUMERICCONVERSION_H
